you have the latest versions of the node installed in your machine.
Check their versions with the following commands:
node -v
npm -v
Requirements: NodeJS v8.9.4 or later, Windows, Linux or Mac OS X
You can install Truffle by using the following command where -g
stands for a global installation:
npm install -g truffle
2.5.26.2 Ganache
Ganache is a personal Ethereum Blockchain used to test the smart
contracts where you can deploy the contracts, develop the
applications, run the tests, and perform other tasks without any cost.
Similarly, download Ganache from the following link:
https://github.com/trufflesuite/ganache/releases
Now, let me run the Ganache that I have already installed on my
machine.
Once you run Ganache, you should see a screen as shown in Figure
2.1, as follows: